#include <iostream>

using namespace std;

int main(int argc, char const *argv[])
{
    int age;
    cout << "Enter your age: ";
    cin >> age;

    if (age < 18)
    {
        cout << "You can't vote." << endl;
        if (age < 16)
        {
            cout << "You can't drive either." << endl;
        }
        else
        {
            cout << "You can drive." << endl;
        }
    }
    else
    {
        if (age < 21)
        {
            cout << "You can't drink alcohol, but you can vote, and drive." << endl;
        }
        else
        {
            cout << "You can legally drink alcohol." << endl;
        }
    }
    return 0;
}
